import request from '@/utils/request'


export default{
    //添加视频
    addVideo(video) {
        return request({
          url: '/eduService/video/addVideo', 
          method: 'post',
          data:video
        })
      },
      //获取视频信息
      getVideo(id) {
        return request({
          url: `/eduService/video/getVideo/${id}`, 
          method: 'get',
        })
      },
      //更新视频
      updateVideo(video) {
        return request({
          url: '/eduService/video/updateVideo', 
          method: 'post',
          data:video
        })
      },
      //在数据库中删除视频
      removeVideo(id) {
        return request({
          url: `/eduService/video/removeVideo/${id}`, 
          method: 'delete',
        })
      },
      //在阿里云端删除视频
      deleteVideo(id) {
        return request({
          url: `/vod/video/deleteVideo/${id}`, 
          method: 'delete',
        })
      },
}